package io.renren.midplat.offerslook.model;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;

/**
 * @Description /aff/v1/batches/offers
 * @Author haijun.zhang@luckincoffee.com
 * @Date 2018-08-07 9:45
 **/
public class GetOfferModel {

    /**
     * offer_all : [{"offer":{"id":32452,"name":"SINoALICE ーシノアリスー","status":"active","category":"Role Playing","offer_approval":3,"offer_approval_msg":"Private","tracking_link":"http://tracking.adinall.com/index.php?offer_id=32452&aff_id=89","end_date":1561444376,"pricing_type":"CPA","payout":"1.890","description":"","percent_payout":"","preview_url":"https://play.google.com/store/apps/details?id=jp.co.pokelabo.sinoalice","currency":"USD","conversion_protocol":2,"conversion_protocol_msg":"Postback URL","thumbnail":"https://files.offerslook.com/partner_3063/campaign/thumb_216172_622645_c6eb762b4c5949a5bc7951e148204542.png"},"offer_geo":"","offer_platform":"","offer_creative":"","offer_event":"","offer_vbt":"","offer_cap":"","offer_postback":""},{"offer":{"id":32452,"name":"SINoALICE ーシノアリスー","status":"active","category":"Role Playing","offer_approval":3,"offer_approval_msg":"Private","tracking_link":"http://tracking.adinall.com/index.php?offer_id=32452&aff_id=89","end_date":1561444376,"pricing_type":"CPA","payout":"1.890","description":"","percent_payout":"","preview_url":"https://play.google.com/store/apps/details?id=jp.co.pokelabo.sinoalice","currency":"USD","conversion_protocol":2,"conversion_protocol_msg":"Postback URL","thumbnail":"https://files.offerslook.com/partner_3063/campaign/thumb_216172_622645_c6eb762b4c5949a5bc7951e148204542.png"},"offer_geo":"","offer_platform":"","offer_creative":"","offer_event":"","offer_vbt":"","offer_cap":"","offer_postback":""}]
     * totalPages : 85
     * totalRows : 169
     * offset : 1
     * limit : 2
     */

    private int totalPages;
    private int totalRows;
    private int offset;
    private int limit;

    @JSONField(name = "rowset")
    private List<OfferAllBean> offerAll;

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public int getTotalRows() {
        return totalRows;
    }

    public void setTotalRows(int totalRows) {
        this.totalRows = totalRows;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public List<OfferAllBean> getOfferAll() {
        return offerAll;
    }

    public void setOfferAll(List<OfferAllBean> offerAll) {
        this.offerAll = offerAll;
    }

    @Override
    public String toString() {
        return "GetOfferModel{" +
                "totalPages=" + totalPages +
                ", totalRows=" + totalRows +
                ", offset=" + offset +
                ", limit=" + limit +
                ", offerAll=" + offerAll +
                '}';
    }

    public static class OfferAllBean {
        /**
         * offer : {"id":32452,"name":"SINoALICE ーシノアリスー","status":"active","category":"Role Playing","offer_approval":3,"offer_approval_msg":"Private","tracking_link":"http://tracking.adinall.com/index.php?offer_id=32452&aff_id=89","end_date":1561444376,"pricing_type":"CPA","payout":"1.890","description":"","percent_payout":"","preview_url":"https://play.google.com/store/apps/details?id=jp.co.pokelabo.sinoalice","currency":"USD","conversion_protocol":2,"conversion_protocol_msg":"Postback URL","thumbnail":"https://files.offerslook.com/partner_3063/campaign/thumb_216172_622645_c6eb762b4c5949a5bc7951e148204542.png"}
         * offer_geo :
         * offer_platform :
         * offer_creative :
         * offer_event :
         * offer_vbt :
         * offer_cap :
         * offer_postback :
         */

        private OfferBean offer;
        private String offer_geo;
        private String offer_platform;
        private String offer_creative;
        private String offer_event;
        private String offer_vbt;
        private String offer_cap;
        private String offer_postback;

        public OfferBean getOffer() {
            return offer;
        }

        public void setOffer(OfferBean offer) {
            this.offer = offer;
        }

        public String getOffer_geo() {
            return offer_geo;
        }

        public void setOffer_geo(String offer_geo) {
            this.offer_geo = offer_geo;
        }

        public String getOffer_platform() {
            return offer_platform;
        }

        public void setOffer_platform(String offer_platform) {
            this.offer_platform = offer_platform;
        }

        public String getOffer_creative() {
            return offer_creative;
        }

        public void setOffer_creative(String offer_creative) {
            this.offer_creative = offer_creative;
        }

        public String getOffer_event() {
            return offer_event;
        }

        public void setOffer_event(String offer_event) {
            this.offer_event = offer_event;
        }

        public String getOffer_vbt() {
            return offer_vbt;
        }

        public void setOffer_vbt(String offer_vbt) {
            this.offer_vbt = offer_vbt;
        }

        public String getOffer_cap() {
            return offer_cap;
        }

        public void setOffer_cap(String offer_cap) {
            this.offer_cap = offer_cap;
        }

        public String getOffer_postback() {
            return offer_postback;
        }

        public void setOffer_postback(String offer_postback) {
            this.offer_postback = offer_postback;
        }

        @Override
        public String toString() {
            return "OfferAllBean{" +
                    "offer=" + offer +
                    ", offer_geo='" + offer_geo + '\'' +
                    ", offer_platform='" + offer_platform + '\'' +
                    ", offer_creative='" + offer_creative + '\'' +
                    ", offer_event='" + offer_event + '\'' +
                    ", offer_vbt='" + offer_vbt + '\'' +
                    ", offer_cap='" + offer_cap + '\'' +
                    ", offer_postback='" + offer_postback + '\'' +
                    '}';
        }

        public static class OfferBean {
            /**
             * id : 32452
             * name : SINoALICE ーシノアリスー
             * status : active
             * category : Role Playing
             * offer_approval : 3
             * offer_approval_msg : Private
             * tracking_link : http://tracking.adinall.com/index.php?offer_id=32452&aff_id=89
             * end_date : 1561444376
             * pricing_type : CPA
             * payout : 1.890
             * description :
             * percent_payout :
             * preview_url : https://play.google.com/store/apps/details?id=jp.co.pokelabo.sinoalice
             * currency : USD
             * conversion_protocol : 2
             * conversion_protocol_msg : Postback URL
             * thumbnail : https://files.offerslook.com/partner_3063/campaign/thumb_216172_622645_c6eb762b4c5949a5bc7951e148204542.png
             */

            private int id;
            private String name;
            private String status;
            private String category;
            private int offer_approval;
            private String offer_approval_msg;
            private String tracking_link;
            private int end_date;
            private String pricing_type;
            private String payout;
            private String description;
            private String percent_payout;
            private String preview_url;
            private String currency;
            private int conversion_protocol;
            private String conversion_protocol_msg;
            private String thumbnail;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public String getCategory() {
                return category;
            }

            public void setCategory(String category) {
                this.category = category;
            }

            public int getOffer_approval() {
                return offer_approval;
            }

            public void setOffer_approval(int offer_approval) {
                this.offer_approval = offer_approval;
            }

            public String getOffer_approval_msg() {
                return offer_approval_msg;
            }

            public void setOffer_approval_msg(String offer_approval_msg) {
                this.offer_approval_msg = offer_approval_msg;
            }

            public String getTracking_link() {
                return tracking_link;
            }

            public void setTracking_link(String tracking_link) {
                this.tracking_link = tracking_link;
            }

            public int getEnd_date() {
                return end_date;
            }

            public void setEnd_date(int end_date) {
                this.end_date = end_date;
            }

            public String getPricing_type() {
                return pricing_type;
            }

            public void setPricing_type(String pricing_type) {
                this.pricing_type = pricing_type;
            }

            public String getPayout() {
                return payout;
            }

            public void setPayout(String payout) {
                this.payout = payout;
            }

            public String getDescription() {
                return description;
            }

            public void setDescription(String description) {
                this.description = description;
            }

            public String getPercent_payout() {
                return percent_payout;
            }

            public void setPercent_payout(String percent_payout) {
                this.percent_payout = percent_payout;
            }

            public String getPreview_url() {
                return preview_url;
            }

            public void setPreview_url(String preview_url) {
                this.preview_url = preview_url;
            }

            public String getCurrency() {
                return currency;
            }

            public void setCurrency(String currency) {
                this.currency = currency;
            }

            public int getConversion_protocol() {
                return conversion_protocol;
            }

            public void setConversion_protocol(int conversion_protocol) {
                this.conversion_protocol = conversion_protocol;
            }

            public String getConversion_protocol_msg() {
                return conversion_protocol_msg;
            }

            public void setConversion_protocol_msg(String conversion_protocol_msg) {
                this.conversion_protocol_msg = conversion_protocol_msg;
            }

            public String getThumbnail() {
                return thumbnail;
            }

            public void setThumbnail(String thumbnail) {
                this.thumbnail = thumbnail;
            }

            @Override
            public String toString() {
                return "OfferBean{" +
                        "id=" + id +
                        ", name='" + name + '\'' +
                        ", status='" + status + '\'' +
                        ", category='" + category + '\'' +
                        ", offer_approval=" + offer_approval +
                        ", offer_approval_msg='" + offer_approval_msg + '\'' +
                        ", tracking_link='" + tracking_link + '\'' +
                        ", end_date=" + end_date +
                        ", pricing_type='" + pricing_type + '\'' +
                        ", payout='" + payout + '\'' +
                        ", description='" + description + '\'' +
                        ", percent_payout='" + percent_payout + '\'' +
                        ", preview_url='" + preview_url + '\'' +
                        ", currency='" + currency + '\'' +
                        ", conversion_protocol=" + conversion_protocol +
                        ", conversion_protocol_msg='" + conversion_protocol_msg + '\'' +
                        ", thumbnail='" + thumbnail + '\'' +
                        '}';
            }
        }
    }
}
